#ifndef GOTOPAGEINPUT_H
#define GOTOPAGEINPUT_H

#include <QWidget>
#include <QHBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QPaintEvent>

namespace kepen {
namespace core {

class GotoPageInput : public QWidget
{
    Q_OBJECT
public:
    explicit GotoPageInput(QWidget *parent = nullptr);
    ~GotoPageInput() override;
public:
    void setCurrentPage(int indexPage);

protected:
    void paintEvent(QPaintEvent* event) override;
    bool eventFilter(QObject *watched, QEvent *event) override;

Q_SIGNALS:
    void GotoPage(int nPage);

private:
    QHBoxLayout* m_pHMainLayout;

    QLineEdit* m_pInput;
    // QLabel* m_pLabel2;
};

}
}

#endif // GOTOPAGEINPUT_H
